{extend name="template/base" /}
{block name="content"}
<div class="page-container">
    <div class="cl pd-5 bg-1 bk-gray">
        <span class="l">
            {tp:menu menu="add" /}
        </span>
        <span class="r pt-5 pr-5">
            共有数据 ：<strong>{$count}</strong> 条
        </span>
    </div>
    <table class="table table-border table-bordered table-hover table-bg mt-20">
        <thead>
        <tr class="text-c">
            {include file="th" /}
            <th width="150">操作</th>
        </tr>
        </thead>
        <tbody>
        {volist name="list" id="vo"}
        <tr class="text-c">
            {include file="td" /}
            <td class="f-14">
                {if condition="$vo.level eq 1"}
                <a href="javascript:;" class="ml-5"
                   style="text-decoration: none" onclick="layer_open('编辑', '/admin/menu/edit1/id/{$vo.id}')" title="一级菜单编辑"><i class="Hui-iconfont">&#xe6df;</i>
                </a>
                {else if condition="$vo.level eq 2"}
                <a href="javascript:;" class="ml-5"
                   style="text-decoration: none" onclick="layer_open('编辑', '/admin/menu/edit2/id/{$vo.id}')" title="二级菜单编辑"><i class="Hui-iconfont">&#xe6df;</i>
                </a>
                {/if}
            </td>
        </tr>
        {/volist}
        </tbody>
    </table>
    <div class="page-bootstrap">{$page}</div>
</div>
{/block}